<?php
	$webRoot = $this->app->getWebRoot();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>巴南区IPv6升级网站</title>
<?php		
	css::import($webRoot . 'js/index/css/reset.css');
	css::import($webRoot . 'js/index/css/common.css');
	css::import($webRoot . 'js/index/css/update.css');
	css::import($webRoot . 'js/index/css/jMyCarousel/jMyCarousel.css');
	js::import($webRoot . 'js/jquery-1.8.3.min.js', $config->version);
	js::import($webRoot . 'js/jMyCarousel/jMyCarousel.js', $config->version);
	js::import($webRoot . 'js/getToday.js', $config->version);
	js::import($webRoot . 'js/getCNDate.js', $config->version);
	js::exportConfigVars();			
?>
<style type="text/css">
	.today{position:absolute;margin-top:26px;margin-left:-21px;}
	.main{width:100%;height:auto;margin-top:10px;}
	.main1{width:1190px;height:auto;margin:0px auto;padding:0px auto;}
	.main_img{width:270px;height:170px;border-radius:5px;overflow:hidden;}
	.main_li{display:block;float:left;margin-left:21px;margin-top:20px;width:270px;height:170px;border-radius:10px;box-shadow:0px 1px 6px #c1c1c1;border;1px solid #c1c1c1;}
	.details{display:none;width:270px;height:30px;background-color:#7a7a7a;opacity:0.7;position:relative;margin-top:-30px;border-radius:0 0 5px 5px;}
	.details_span{display:block;margin-top:5px;margin-left:10px;line-height:22px;float:left;}
	.top_center{width:1200px;margin-left:auto;margin-right:auto;height:61px;}
</style>
<script type="text/javascript">
	$(document).ready(function(){
		var myDate = new Date();
		var Y = myDate.getFullYear();    //获取完整的年份(4位,1970-????)
		var M = myDate.getMonth()+1;       //获取当前月份(0-11,0代表1月)
		var D = myDate.getDate();        //获取当前日(1-31)
		var W = myDate.getDay();         //获取当前星期X(0-6,0代表星期天)
		var week = new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
		
		//显示当前日期
		$(".today").text(D);
		$(".Y-M-D").text(Y+"-"+M+"-"+D);
		$(".week").text(week[W]);//alert(week[W]);
		//显示农历日期
		$(".CNDateTime").text(showCal());
	})
	function createLink(moduleName, methodName, vars, viewType)
	{
		if(!viewType) viewType = config.defaultView;
		if(vars)
		{
			vars = vars.split('&');
			for(i = 0; i < vars.length; i ++) vars[i] = vars[i].split('=');
		}
		if(config.requestType == 'PATH_INFO')
		{
			link = config.webRoot + moduleName + config.requestFix + methodName;
			if(vars)
			{
				if(config.pathType == "full")
				{
					for(i = 0; i < vars.length; i ++) link += config.requestFix + vars[i][0] + config.requestFix + vars[i][1];
				}
				else
				{
					for(i = 0; i < vars.length; i ++) link += config.requestFix + vars[i][1];
				}
			}
			link += '.' + viewType;
		}
		else
		{
			link = config.router + '?' + config.moduleVar + '=' + moduleName + '&' + config.methodVar + '=' + methodName + '&' + config.viewVar + '=' + viewType;
			if(vars) for(i = 0; i < vars.length; i ++) link += '&' + vars[i][0] + '=' + vars[i][1];
		}
		return link;
	}
	function startSearch(moduleName, methodName){
		var args=arguments,
			src=location.href;
			vars = src.split('?')[1];	
			vars = vars.split('&');	
			
			var return_array=new Object();
			for(var i = 0; i < vars.length; i++) {
				var var_array=vars[i].split('=');
				return_array[var_array[0]]=var_array[1];
			}
			for(var j=2;j<arguments.length;j++){
				return_array[arguments[j]]=encodeURI($("#"+arguments[j]).val());
			}
			
			delete return_array.m;
			delete return_array.f;
			delete return_array.t;//config.viewVar  是这个值，如是配置文件改变，这里相应改变
			var vars_config='';
			for(var k in return_array){
			   vars_config+=k;
			   vars_config+='=';
			   vars_config+=return_array[k]+"&";
			}
			vars_config=vars_config.substr(0,vars_config.length-1);
			//console.log(vars_config);
			//console.log(createLink(moduleName,methodName,vars_config));
			//console.log(vars_config);
			location.href=createLink(moduleName,methodName,vars_config);
		//	console.log(return_array);
		//console.log(arguments);
	}
	
	$(function() {
		$(".jMyCarousel").jMyCarousel({
			visible: '1',
			eltByElt: true,
			step:1190,
			evtStart: 'mousedown',
			evtStop: 'mouseup',
			btnPrev: $('#pre_left'),			// previous button customization
			btnNext: $('#pre_right')	
		});

	});
</script>
</head>

<body>
<div id="topOne" style="height: 235px; background-image:url(<?php echo $webRoot?>theme/default/images/top-one.png); background-size:cover; ">
  
<div id="wrap">
<div id="top"> <img src="<?php echo $webRoot?>theme/default/images/whitelogo.png" class="logo"/>
  <div class="top_center">
	<div id="nowaday"><div> <img src="<?php echo $webRoot?>theme/default/images/calendar.png" class="calendar"/><span class="today"></span> </div>
		<span id="date">
		  <ul >
			<li><span class="Y-M-D"></span>&nbsp;&nbsp;<span class="week"></span></li>
			<li><span class="CNDateTime"></span></li>
		  </ul>
		  </span> 
	<!--	  <span id="city">
		  <ul>
			<li> 重&nbsp;&nbsp;庆</li>
			<li>[切换]</li>
		  </ul>
		  </span> <span id="line"><img src="<?php echo $webRoot?>theme/default/images/line.png" class="line"/> <img src="<?php echo $webRoot?>theme/default/images/cloud.png" class="cloud"/></span> <span id="weather">
		  <ul>
			<li>今天 小雨</li>
			<li>13~17℃</li>
		  </ul>
		  </span> 
		<iframe width="220" scrolling="no" height="60" frameborder="0" style="margin-left:176px;margin-top:-56px;" allowtransparency="true" src="http://i.tianqi.com/index.php?c=code&id=12&color=%23FFFFFF&icon=1&num=1"></iframe>-->
	</div>
  </div>
  </div>
  <div id="search">
    <div id="search1"><span class="sear"><img src="<?php echo $webRoot?>theme/default/images/search.png"/><img style="margin-top:0px;margin-left:7px;" src="<?php echo $webRoot?>theme/default/images/line2.png"/></span>
    <input name="key_words" id="key_words" type="text" value="你想找什么?" onfocus="if(this.value == '你想找什么?') this.value = ''" onblur="if(this.value =='') this.value = '你想找什么?'" class="text" value="<?php echo $_GET['key_words'];?>"/></div>
    <div id="search2"><a href="javascript:void(0);" onclick="startSearch('index','update','key_words')"><img src="<?php echo $webRoot?>theme/default/images/searchbutton.png" class="searchbutton"/></a></div> 
  </div>
  <div id="mainnavi" style="background-image:url(<?php echo $webRoot?>theme/default/images/navi-bg.png);">
    <ul>
      <li><a href="<?php echo $this->createLink('index','index_ipv6');?>" target="_blank"><b>首 页</b></a></li>
      <li><a href="<?php echo $this->createLink('index','update');?>" class="current"><b>巴南区IPv6升级网站</b></a></li>
      <li><a href="<?php echo $this->createLink('index','netaddress');?>" target="_blank"><b>IPv6网址导航</b></a></li>
      <li><a href="<?php echo $this->createLink('index','state');?>" target="_blank"><b>IPv6链接状态监测</b></a></li>
      <li><a href="<?php echo $this->createLink('index','test');?>" target="_blank"><b>IPv6相关测试</b></a></li>
      <li class="nobodor"><a href="<?php echo $this->createLink('index','faq');?>" target="_blank"><b>FAQ</b></a></li>
    </ul>
  </div>
  <div style="clear:both"></div>

  
  <div class="main scroll" style="margin-top: 20px;">
	<div class="main1 picbox">
		<div class="left flip" id="pre_left" style="position:absolute; cursor:pointer;float:left;margin-top:245px;left:0px;"><img src="<?php echo $webRoot?>theme/default/images/left.png" /></div>
		<div class="left flip" id="pre_right" style="position:absolute; cursor:pointer;float:left;margin-top:245px;right:0px;"><img src="<?php echo $webRoot?>theme/default/images/right.png" /></div>
		<!--start carousel-->
		<div class="jMyCarousel">
			<ul>
			
				<li>
					<dl>
						<?php $output = array_slice($sites_info_list,0,12); foreach($output as $k => $item): ?>
						<dd class="main_li goodlist" style="list-style:none">
							<a href="<?php echo $item->visit_type."://".$item->pre_v6.".".$item->main_domain;?>" target="_blank">
								<div class="main_img"><img src="<?php echo $webRoot?>admin/uploads/<?php echo $item->site_pic;?>"/></div>
								<div class="details">
									<span style="color:#fff;font-size:13px;font-family:'微软雅黑';" class="details_span"><?php echo $item->sites_name;?></span>
								</div>
							</a>
						</dd>
						<?php endforeach;?>
					</dl>
				</li>
				<li>
					<dl>
						<?php $output = array_slice($sites_info_list,13,12); foreach($output as $k => $item): ?>
						<dd class="main_li goodlist" style="list-style:none">
							<a href="<?php echo $item->visit_type."://".$item->pre_v6.".".$item->main_domain;?>" target="_blank">
								<div class="main_img"><img src="<?php echo $webRoot?>admin/uploads/<?php echo $item->site_pic;?>"/></div>
								<div class="details">
									<span style="color:#fff;font-size:13px;font-family:'微软雅黑';" class="details_span"><?php echo $item->sites_name;?></span>
								</div>
							</a>
						</dd>
						<?php endforeach;?>
					</dl>
				</li>
				<li>
					<dl>
						<?php $output = array_slice($sites_info_list,25,12); foreach($output as $k => $item): ?>
						<dd class="main_li goodlist" style="list-style:none">
							<a href="<?php echo $item->visit_type."://".$item->pre_v6.".".$item->main_domain;?>" target="_blank">
								<div class="main_img"><img src="<?php echo $webRoot?>admin/uploads/<?php echo $item->site_pic;?>"/></div>
								<div class="details">
									<span style="color:#fff;font-size:13px;font-family:'微软雅黑';" class="details_span"><?php echo $item->sites_name;?></span>
								</div>
							</a>
						</dd>
						<?php endforeach;?>
					</dl>
				</li>
				<li>
					<dl>
						<?php $output = array_slice($sites_info_list,37,12); foreach($output as $k => $item): ?>
						<dd class="main_li goodlist" style="list-style:none">
							<a href="<?php echo $item->visit_type."://".$item->pre_v6.".".$item->main_domain;?>" target="_blank">
								<div class="main_img"><img src="<?php echo $webRoot?>admin/uploads/<?php echo $item->site_pic;?>"/></div>
								<div class="details">
									<span style="color:#fff;font-size:13px;font-family:'微软雅黑';" class="details_span"><?php echo $item->sites_name;?></span>
								</div>
							</a>
						</dd>
						<?php endforeach;?>
					</dl>
				</li>
				<li>
					<dl>
						<?php $output = array_slice($sites_info_list,49,12); foreach($output as $k => $item): ?>
						<dd class="main_li goodlist" style="list-style:none">
							<a href="<?php echo $item->visit_type."://".$item->pre_v6.".".$item->main_domain;?>" target="_blank">
								<div class="main_img"><img src="<?php echo $webRoot?>admin/uploads/<?php echo $item->site_pic;?>"/></div>
								<div class="details">
									<span style="color:#fff;font-size:13px;font-family:'微软雅黑';" class="details_span"><?php echo $item->sites_name;?></span>
								</div>
							</a>
						</dd>
						<?php endforeach;?>
					</dl>
				</li>
			</ul>
		</div>
		<!--end carousel-->
	</div>
  </div>
  <div id="footer">
    <p>立普威陆（重庆）科技有限公司版权所有 -升级网站&nbsp;&nbsp;&nbsp;&nbsp;<script type="text/javascript">
		//页面访问量统计
		var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1257160509'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s11.cnzz.com/stat.php%3Fid%3D1257160509%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));
	</script></p></div>
</div>
</div>
</body>
<script type="text/javascript">
	$(".main_img").mouseover(function(){
		$(this).next().show();
	})
	$(".details").mouseover(function(){
		$(this).show();
	})
	$(".main_img").mouseout(function(){
		$(this).next().hide();
	})
	$(".details").mouseout(function(){
		$(this).hide();
	})
	$(".main_li").mouseover(function(){
		$(this).css("box-shadow","0px 1px 8px #459df5");
	})
	$(".main_li").mouseout(function(){
		$(this).css("box-shadow","0px 1px 8px #c1c1c1");
	})
	$(".flip").click(function(){
		$("#pre_left").children().attr("src","<?php echo $webRoot?>theme/default/images/left-bule.png");
	})
</script>
</html>
